Package-level declarations

Contains types such as NotBlankString for manipulating text.

Types

Link copied to clipboard
@Serializable(with = NotBlankStringSerializer::class)
@SinceKotoolsTypes(version = "4.0")
value class NotBlankString : Comparable<NotBlankString>

Representation of strings that have at least one character, excluding whitespaces.

Functions

Link copied to clipboard
@ExperimentalSinceKotoolsTypes(version = "4.2")
operator fun Char.plus(other: NotBlankString): NotBlankString

Concatenates this character with the other string.

@ExperimentalSinceKotoolsTypes(version = "4.2")
operator fun NotBlankString.plus(other: Char): NotBlankString

Concatenates this string with the other character.

@ExperimentalSinceKotoolsTypes(version = "4.2")
operator fun NotBlankString.plus(other: String): NotBlankString
@ExperimentalSinceKotoolsTypes(version = "4.2")
operator fun NotBlankString.plus(other: NotBlankString): NotBlankString

Concatenates this string with the other one.

Link copied to clipboard
@SinceKotoolsTypes(version = "4.0")
fun String.toNotBlankString(): Result<NotBlankString>

Returns this string as an encapsulated NotBlankString, or returns an encapsulated IllegalArgumentException if this string is blank.